package com.holystone.splunk.app.mybatis.model;

import java.util.Date;

/**
 * Copyright (c) 2017, HOLYSTONE Technologies, Inc.
 * All right reserved.
 *
 * @author huyan
 * @date 2017/12/4
 * @desc:
 */
public class Alert {
    private String alertSid;//告警的唯一标识

    private String alertName;//告警名称

    private String alertType;//告警类型

    private String alertOwner;//告警所属者

    private Integer alertLevel;//告警等级：1-info 2-low 3-medium 4-high 5-critical

    private Integer alertState;//告警状态：0-新生告警 1-已关联 2-关闭

    private Date triggerTime;//告警触发时间

    private Date createTime;//告警创建时间

    private String r_md5; // 用来判断告警是否相同

    private String r_search; // 保存搜索结果（用于反向搜索）

    private String alertResult; // 告警结果

    private String alertSearch; // 告警搜索语句

    private String earliestTime;// 告警对应的开始时间

    private String latestTime; // 告警对应的结束时间

    public String getAlertSearch() {
        return alertSearch;
    }

    public void setAlertSearch(String alertSearch) {
        this.alertSearch = alertSearch;
    }

    public String getAlertSid() {
        return alertSid;
    }

    public void setAlertSid(String alertSid) {
        this.alertSid = alertSid;
    }

    public String getAlertName() {
        return alertName;
    }

    public void setAlertName(String alertName) {
        this.alertName = alertName;
    }

    public String getAlertType() {
        return alertType;
    }

    public void setAlertType(String alertType) {
        this.alertType = alertType;
    }

    public String getAlertOwner() {
        return alertOwner;
    }

    public void setAlertOwner(String alertOwner) {
        this.alertOwner = alertOwner;
    }

    public Integer getAlertLevel() {
        return alertLevel;
    }

    public void setAlertLevel(Integer alertLevel) {
        this.alertLevel = alertLevel;
    }

    public Integer getAlertState() {
        return alertState;
    }

    public void setAlertState(Integer alertState) {
        this.alertState = alertState;
    }

    public Date getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(Date triggerTime) {
        this.triggerTime = triggerTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getR_md5() {
        return r_md5;
    }

    public void setR_md5(String r_md5) {
        this.r_md5 = r_md5;
    }

    public String getR_search() {
        return r_search;
    }

    public void setR_search(String r_search) {
        this.r_search = r_search;
    }

    public String getAlertResult() {
        return alertResult;
    }

    public void setAlertResult(String alertResult) {
        this.alertResult = alertResult;
    }

    public String getEarliestTime() {
        return earliestTime;
    }

    public void setEarliestTime(String earliestTime) {
        this.earliestTime = earliestTime;
    }

    public String getLatestTime() {
        return latestTime;
    }

    public void setLatestTime(String latestTime) {
        this.latestTime = latestTime;
    }
}
